#include "CVector.h"

using namespace std;

CVector::CVector(double x, double y) :
	cx(x), cy(y) {}

CVector::~CVector() {}

void CVector::setX(double x) {
	this->cx = x;
}

void CVector::setY(double y) {
	this->cy = y;
}

void CVector::setX(int x) {
	this->cx = (double) x;
}

void CVector::setY(int y) {
	this->cy = (double) y;
}

double CVector::getX() {
	return this->cx;
}

double CVector::getY() {
	return this->cy;
}

VGCVector CVector::toVGC() {
	return VGCVector((int) getX(), (int) getY());
}